package de.doegel.common.model;

import android.graphics.Bitmap;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;

public class Contact {
	public static final String idKey = "pID";
	public static final String nameKey = "name";
	public static final String zipcodeKey = "plz";
	public static final String locationKey = "ort";
	public static final String imageURLKey = "pfad";
	
	@DatabaseField(id = true)
	public int id;
	
	@DatabaseField(canBeNull = false)
	public String name;	

	@DatabaseField
	public String imageURL;

	@DatabaseField
	public String zipcode;

	@DatabaseField
	public String location;
	
	@DatabaseField(dataType=DataType.SERIALIZABLE)
	public byte[] imageBuffer;

	public Bitmap image;
	
	public Contact() {
		// needed by ormlite
	}
}
